package SMS.pojo;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName majors
 */
@Data
public class Majors implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String majorno;

    /**
     * 
     */
    private String majorname;

    /**
     * 
     */
    private String collageno;

    /**
     * 
     */
    private String requiredno1;

    /**
     * 
     */
    private String requiredno2;

    /**
     * 
     */
    private String chargeno;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Majors other = (Majors) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMajorno() == null ? other.getMajorno() == null : this.getMajorno().equals(other.getMajorno()))
            && (this.getMajorname() == null ? other.getMajorname() == null : this.getMajorname().equals(other.getMajorname()))
            && (this.getCollageno() == null ? other.getCollageno() == null : this.getCollageno().equals(other.getCollageno()))
            && (this.getRequiredno1() == null ? other.getRequiredno1() == null : this.getRequiredno1().equals(other.getRequiredno1()))
            && (this.getRequiredno2() == null ? other.getRequiredno2() == null : this.getRequiredno2().equals(other.getRequiredno2()))
            && (this.getChargeno() == null ? other.getChargeno() == null : this.getChargeno().equals(other.getChargeno()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMajorno() == null) ? 0 : getMajorno().hashCode());
        result = prime * result + ((getMajorname() == null) ? 0 : getMajorname().hashCode());
        result = prime * result + ((getCollageno() == null) ? 0 : getCollageno().hashCode());
        result = prime * result + ((getRequiredno1() == null) ? 0 : getRequiredno1().hashCode());
        result = prime * result + ((getRequiredno2() == null) ? 0 : getRequiredno2().hashCode());
        result = prime * result + ((getChargeno() == null) ? 0 : getChargeno().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", majorno=").append(majorno);
        sb.append(", majorname=").append(majorname);
        sb.append(", collageno=").append(collageno);
        sb.append(", requiredno1=").append(requiredno1);
        sb.append(", requiredno2=").append(requiredno2);
        sb.append(", chargeno=").append(chargeno);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}